/**
 * @file SDLIntroSection.h
 *
 * @date Nov 24, 2009
 * @author Ives van der Flaas
 */

#ifndef SDLINTROSECTION_H_
#define SDLINTROSECTION_H_

#include <tr1/memory>
#include "SDLApplicationSection.h"
#include "SDLApplication.h"
#include "SDLImageRepresentation.h"
#include "SDLTextRepresentation.h"
#include "SDLWindow.h"
#include "SDLMovingText.h"

namespace si_sdl {
/**
 * A section of the app in which there is text scrolling upwards. This text will describe the
 * story line.
 */
class SDLIntroSection: public SDLApplicationSection {
public:
	SDLIntroSection(SDLApplication& parent, SDLWindow& win);
	virtual ~SDLIntroSection();

	virtual void newFrame(double timeSinceLastFrame);
	virtual void onSDLEvent(SDL_Event& event);

private:
	std::tr1::shared_ptr<SDLMovingText> fTextObj;

	double fEndTime;
};

}

#endif /* SDLINTROSECTION_H_ */
